module Base
{
	model BTR-80A
	{
		mesh = vehicles/BTR-80A|Base,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = TRUE,
		scale = 0.01,	
	}
	model BTR-80_Armor1
	{
		mesh = vehicles/BTR-80|Armor3,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = TRUE,
		scale = 0.01,	
	}
	model BTR-80_Armor2
	{
		mesh = vehicles/BTR-80|Armor1,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = TRUE,
		scale = 0.01,	
	}
	model BTR-80_Armor3
	{
		mesh = vehicles/BTR-80|Armor2,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = TRUE,
		scale = 0.01,	
	}
	model BTR-80_Spare_Tire
	{
		mesh = vehicles/BTR-80|Step_Tire,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = TRUE,
		scale = 0.01,	
	}
	model BTR-80_Extra_GasCan_1
	{
		mesh = vehicles/BTR-80|GasCan_1,
		texture = vehicles/PC_Jerrycan,
		shader = basicEffect,
		invertX = FALSE,
		invertY = TRUE,
		scale = 0.01,	
	}
	model BTR-80_Extra_GasCan_2
	{
		mesh = vehicles/BTR-80|GasCan_2,
		texture = vehicles/PC_Jerrycan,
		shader = basicEffect,
		invertX = FALSE,
		invertY = TRUE,
		scale = 0.01,	
	}
	model BTR-80_Extra_GasCan_3
	{
		mesh = vehicles/BTR-80|GasCan_3,
		texture = vehicles/PC_Jerrycan,
		shader = basicEffect,
		invertX = FALSE,
		invertY = TRUE,
		scale = 0.01,	
	}
	model BTR-80_Muffler
	{
		mesh = vehicles/BTR-80|Muffler,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = TRUE,
		scale = 0.01,	
	}
	model BTR-80_Windshield_Armor
	{
		mesh = vehicles/BTR-80|Wind_Armor,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = TRUE,
		scale = 0.01,	
	}
	model BTR-80_Hood
	{
		mesh = vehicles/BTR-80|Hood,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = FALSE,
		scale = 0.01,
		static = FALSE,
		boneWeight = Bone_Hood 1.0,
	}
	model BTR-80_Door_Front_Left
	{
		mesh = vehicles/BTR-80|Door_FL,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = FALSE,
		scale = 0.01,
		static = FALSE,
		boneWeight = Bone_Door_Front_L 1.0,
	}
	model BTR-80_Door_Front_Right
	{
		mesh = vehicles/BTR-80|Door_FR,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = FALSE,
		scale = 0.01,
		static = FALSE,
		boneWeight = Bone_Door_Front_R 1.0,
	}
	model BTR-80_Door_Back_Left
	{
		mesh = vehicles/BTR-80|Door_ML,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = FALSE,
		scale = 0.01,
		static = FALSE,		
		boneWeight = Bone_Door_Mid_UP_L 1.0,
		boneWeight = Bone_Door_Mid_DO_L 1.0,
	}
	model BTR-80_Door_Back_Right
	{
		mesh = vehicles/BTR-80|Door_MR,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = FALSE,
		scale = 0.01,
		static = FALSE,	
		boneWeight = Bone_Door_Mid_UP_R 1.0,
		boneWeight = Bone_Door_Mid_DO_R 1.0,		
	}
	model BTR-80_Hatch
	{
		mesh = vehicles/BTR-80|Hatch,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = FALSE,
		scale = 0.01,
		static = TRUE,
		
	}
	model BTR-80_Windshield
	{
		mesh = vehicles/BTR-80|Wind,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = FALSE,
		scale = 0.01,
		static = TRUE,		
	}
	model BTR-80_TurrentA
	{
		mesh = vehicles/BTR-80_TurretA|Turret_B,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = FALSE,
		scale = 0.01,
		static = FALSE,
		boneWeight = Bone_Base_Turrent 1.0,
	}
	model BTR-80_CannonA
	{
		mesh = vehicles/BTR-80_TurretA|Cannon_B,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = FALSE,
		scale = 0.01,
		static = FALSE,
		boneWeight = Bone_Cannon 1.0,
	}
	model BTR-80_MuzzleA
	{
		mesh = vehicles/BTR-80_TurretA|Muzzle_B,
		shader = vehicle_noreflect,
		invertX = FALSE,
		invertY = FALSE,
		scale = 0.01,
		static = FALSE,
		boneWeight = Bone_Base_Turrent 1.0,
	}
	model BTR-80_Tires
	{
		mesh = vehicles/BTR-80_Tires|Tires,
		shader = vehicle_noreflect,
		scale = 0.01,
		static = FALSE,		
		boneWeight = Bone_Tire 1.0,
	}
	model BTR-80_AxleRear
	{
		mesh = vehicles/BTR-80_Tires|Tires_Fake,
		shader = vehicle_noreflect,
		scale = 0.01,
		static = FALSE,		
		boneWeight = Bone_Axe 1.0,
		boneWeight = Bone_Tire 1.0,
	}
	model BTR-80_AxleFront
	{
		mesh = vehicles/BTR-80_Tires|Tires_Fake,
		shader = vehicle_noreflect,
		scale = 0.01,
		static = FALSE,		
		boneWeight = Bone_Tire 1.0,
	}
	model BTR-80_SuspensionFake
	{
		mesh = vehicles/BTR-80_Tires|Suspension_Fake,
		shader = vehicle_noreflect,
		scale = 0.01,
		static = FALSE,			
		boneWeight = Bone_Axe 1.0,
	}
	vehicle BTR-80A
    {
        mechanicType = 2,
        offRoadEfficiency = 1.3,
        engineRepairLevel = 8,
        playerDamageProtection = 0.8,
        engineRPMType = van,

        model
        {
            file = BTR-80A,
            scale = 0.9300,
            offset = 0.0000 -0.3763 0.0000,
            rotate = 0 180 0,
        }

        spawnOffsetY = 0.12999995,

        skin
        {
            texture = Vehicles/BTR-80_Green,
        }

        skin
        {
            texture = Vehicles/BTR-80_Desert,
        }

        skin
        {
            texture = Vehicles/BTR-80_Black,
        }

        skin
        {
            texture = Vehicles/BTR-80_Camo,
        }

        textureMask = Vehicles/BTR-80_Mask,
        textureLights = Vehicles/BTR-80_Light,
        textureDamage1Overlay = Vehicles/no_texture_tank,
        textureDamage2Overlay = Vehicles/no_texture_tank,
        textureDamage1Shell = Vehicles/no_texture_tank,
        textureDamage2Shell = Vehicles/no_texture_tank,
        textureRust = Vehicles/BTR-80_Rust,

        sound
        {
            engine = VehicleEnginePickUpTruck,
            engineStart = VehicleEnginePickUpTruck,
            engineTurnOff = VehicleEnginePickUpTruck,
            horn = VehicleHornStandard,
            ignitionFail = VehicleIgnitionFailPickUpTruck,
        }

        extents = 2.9677 2.1290 7.4839,
        mass = 1104,
        physicsChassisShape = 2.9247 2.1290 7.4624,
        centerOfMassOffset = 0.0000 1.0645 0.0000,
        shadowExtents = 3.0178 7.3281,
        shadowOffset = 0.0000 0.0011,
        engineForce = 5600,
        engineLoudness = 90,
        engineQuality = 90,
        maxSpeed = 60f,
        gearRatioCount = 4,
        gearRatioR = 5.5,
        gearRatio1 = 10.0,
        brakingForce = 80,
        stoppingMovementForce = 5.0f,
        rollInfluence = 0.7f,
        steeringIncrement = 1.04,
        steeringClamp = 1.3,
        suspensionStiffness = 50,
        suspensionCompression = 4.1,
        suspensionDamping = 3.4,
        maxSuspensionTravelCm = 20,
        suspensionRestLength = 0.2,
        wheelFriction = 1.8f,
        frontEndHealth = 5000,
        rearEndHealth = 3000,
        isSmallVehicle = false,
        seats = 8,

        wheel FrontLeft
        {
            front = true,
            offset = 1.0753 -0.0215 1.8602,
            radius = 0.15f,
            width = 0.2f,
        }

        wheel FrontRight
        {
            front = true,
            offset = -1.1828 -0.0215 1.8602,
            radius = 0.15f,
            width = 0.2f,
        }

        wheel RearLeft
        {
            front = false,
            offset = 1.0753 -0.0215 -1.9355,
            radius = 0.15f,
            width = 0.2f,
        }

        wheel RearRight
        {
            front = false,
            offset = -1.1828 -0.0215 -1.9355,
            radius = 0.15f,
            width = 0.2f,
        }

        area Engine
        {
            xywh = 1.8710 -1.6667 0.7742 0.7312,
        }

        area SeatFrontLeft
        {
            xywh = 1.8602 1.9140 0.7527 0.7527,
        }

        area SeatFrontRight
        {
            xywh = -1.8817 1.9247 0.7957 0.7742,
        }

        area GasTank
        {
            xywh = -1.8710 -3.1935 0.7742 0.7742,
        }

        area SeatRearLeft
        {
            xywh = 1.8710 -0.2151 0.7742 0.7742,
        }

        area SeatRearRight
        {
            xywh = -1.8710 -0.2151 0.7742 0.7742,
        }

        area TireFrontLeft
        {
            xywh = 1.8710 1.6559 0.7742 0.8387,
        }

        area TireFrontRight
        {
            xywh = -1.8710 1.5484 0.7742 0.8387,
        }

        area TireRearLeft
        {
            xywh = 1.8710 -1.3978 0.7742 0.8387,
        }

        area TireRearRight
        {
            xywh = -1.8710 -1.3871 0.7742 0.8387,
        }

        area SideTruck
        {
            xywh = 0.0000 0.2581 4.6452 2.5591,
        }

        template = Axle/part/AxleFront,
        template = Axle/part/AxleFrontB,
        template = Axle/part/AxleRear,
        template = Axle/part/AxleRearB,
        template = Axle/part/SuspensionFake,
        template = Axle/part/SuspensionFakeB,
        template = Axle/part/FrontLeftTire,
        template = Axle/part/FrontLeftTireB,
        template = Axle/part/FrontRightTire,
        template = Axle/part/FrontRightTireB,
        template = Axle/part/RearLeftTire,
        template = Axle/part/RearLeftTireB,
        template = Axle/part/RearRightTire,
        template = Axle/part/RearRightTireB,

        part SuspensionFake
        {
            category = nodisplay,

            model Default
            {
                file = BTR-80_SuspensionFake,
                offset = 0.0000 -0.0000 -0.0000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }
        }

        part SuspensionFakeB
        {
            category = nodisplay,

            model Default
            {
                file = BTR-80_SuspensionFake,
                offset = 0.0000 -0.0000 -0.0000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }
        }

        part AxleFront
        {
            model Default
            {
                file = BTR-80_AxleFront,
                offset = 0.0000 -0.0576 0.0000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }
        }

        part AxleFrontB
        {
            model Default
            {
                file = BTR-80_AxleFront,
                offset = 0.0000 -0.0576 0.0000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }
        }

        part AxleRear
        {
            model Default
            {
                file = BTR-80_AxleRear,
                offset = 0.0000 -0.0544 0.0000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }
        }

        part AxleRearB
        {
            model Default
            {
                file = BTR-80_AxleRear,
                offset = 0.0000 -0.0544 0.0000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }
        }

        part FrontLeftTire
        {
            model Default
            {
                file = BTR-80_Tires,
                offset = 0.0000 -0.0000 2.1000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }
        }

        part FrontLeftTireB
        {
            model Default
            {
                file = BTR-80_Tires,
                offset = 0.0000 -0.0000 0.7000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }
        }

        part FrontRightTire
        {
            model Default
            {
                file = BTR-80_Tires,
                offset = 0.0000 -0.0000 2.1000,
                rotate = 0.0000 0.0000 0.0000,
                scale = 1.0,
            }
        }

        part FrontRightTireB
        {
            model Default
            {
                file = BTR-80_Tires,
                offset = 0.0000 -0.0000 0.7000,
                rotate = 0.0000 0.0000 0.0000,
                scale = 1.0,
            }
        }

        part RearLeftTire
        {
            model Default
            {
                file = BTR-80_Tires,
                offset = 0.0000 -0.0000 -1.0000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }
        }

        part RearLeftTireB
        {
            model Default
            {
                file = BTR-80_Tires,
                offset = 0.0000 -0.0000 -2.4000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }
        }

        part RearRightTire
        {
            model Default
            {
                file = BTR-80_Tires,
                offset = 0.0000 -0.0000 -1.0000,
                rotate = 0.0000 0.0000 0.0000,
                scale = 1.0,
            }
        }

        part RearRightTireB
        {
            model Default
            {
                file = BTR-80_Tires,
                offset = 0.0000 -0.0000 -2.4000,
                rotate = 0.0000 0.0000 0.0000,
                scale = 1.0,
            }
        }

        template = TankMachinegun/part/Cannon30mm2A42,
        template = TankMachinegun/part/PKT_Coax,

        part Cannon30mm2A42
        {
            model Default
            {
                file = BTR-80_CannonA,
                offset = 0.0000 0.0000 0.8404,
                rotate = 0.0000 0.0000 0.0000,
                scale = 1.0,
            }

            model Muzzle
            {
                file = BTR-80_MuzzleA,
                offset = 0.0000 0.0000 0.8404,
                rotate = 0.0000 0.0000 0.0000,
                scale = 1.0,
            }
        }

        part PKT_Coax
        {
            parent = Turrent,
        }

        template = Turrent,

        part Turrent
        {
            category = Turrent,

            model Default
            {
                file = BTR-80_TurrentA,
                offset = 0.0000 0.0000 0.8404,
                rotate = 0.0000 0.0000 0.0000,
                scale = 1.0,
            }

            lua
            {
                create = Vehicles.Create.TORRENTA,
                init = Vehicles.Init.TORRENTA,
                update = Vehicles.Update.TORRENTA,
            }
        }

        part TankRoof
        {
            mechanicArea = Back,
            area = SideTruck,
            category = bodywork,
            itemType = Base.NormalTrunk,
            mechanicRequireKey = false,
            repairMechanic = true,
            durability = 10,

            container
            {
                conditionAffectsCapacity = false,
                capacity = 40,
                test = Vehicles.ContainerAccess.TruckBedOpen,
            }

            lua
            {
                create = Vehicles.Create.Default,
            }
        }

        template = GloveBox,

        part GloveBox
        {
            container
            {
                capacity = 20,
            }
        }

        template = GasTank,

        part GasTank
        {
            container
            {
                conditionAffectsCapacity = false,
                capacity = 85,
            }

            install
            {
                skills = Mechanics:7,
                recipes = Intermediate Mechanics,
            }

            uninstall
            {
                skills = Mechanics:7,
                recipes = Intermediate Mechanics,
            }
        }

        template = Battery,
        template = Engine,
        template = Muffler,

        part Muffler
        {
            itemType = Base.BTR-80_Muffler,
			 
			model Default
            {
                file = BTR-80_Muffler,
                offset = -0.0000 0.0000 -0.0000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }

            table install
            {
                recipes = Advanced Mechanics,
            }

            table uninstall
            {
                recipes = Advanced Mechanics,
            }
        }

        template = EngineDoor,

        part EngineDoor
        {
            itemType = Base.BTR-80_Hood,

            model Default
            {
                file = BTR-80_Hood,
                offset = -0.0000 0.0000 -0.0000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }

            anim Close
            {
                anim = Door,
                reverse = TRUE,
                rate = 2.0,
            }

            anim Open
            {
                anim = Door,
                reverse = FALSE,
                rate = 2.0,
            }

            anim Closed
            {
                anim = Door,
                reverse = FALSE,
                animate = FALSE,
            }

            anim Opened
            {
                anim = Door,
                reverse = TRUE,
                animate = FALSE,
            }

            anim ActorOpen
            {
                anim = WindowOpenSuccess,
                rate = 0.15,
                angle = 0.0 0.0 0.0,
            }

            anim ActorClose
            {
                anim = Attack_Shove,
                rate = 0.3,
                angle = 0.0 0.0 0.0,
            }

            table install
            {
                recipes = Advanced Mechanics,
            }

            table uninstall
            {
                recipes = Advanced Mechanics,
            }

            anim ActorOpen
            {
                sound = VehicleHoodOpenSportsCar,
            }

            anim Close
            {
                sound = VehicleHoodCloseSportsCar,
            }
        }

        template = SeatBTR-80/part/SeatFrontLeft,
        template = SeatBTR-80/part/SeatGunner,
        template = SeatBTR-80/part/SeatFrontRight,
        template = SeatBTR-80/part/SeatP1,
        template = SeatBTR-80/part/SeatP2,
        template = SeatBTR-80/part/SeatP3,
        template = SeatBTR-80/part/SeatP4,
        template = SeatBTR-80/part/SeatP5,
        template = SeatBTR-80/part/SeatP6,
        template = PassengerBTR-80,

        passenger FrontLeft
        {
            position inside
            {
                offset = 0.4086 0.9247 2.0538,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 1.8280 0.0000 1.7742,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontLeft,
            }

            door = DoorFrontLeft,
            area = SeatFrontLeft,

            switchSeat Gunner
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat FrontRight
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P1
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P2
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P3
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P4
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P5
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P6
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }
        }

        passenger Gunner
        {
            position inside
            {
                offset = 0.0000 1.1241 0.8387,
                rotate = 0.0000 0.0522 0.0000,
            }

            position outside
            {
                offset = -1.7312 0.0000 -0.2151,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatRearRight,
            }

            showPassenger = false,
            door = DoorRearRight,
            area = SeatRearRight,

            anim idle
            {
                anim = idleBook,
                rate = 1.0,
            }

            switchSeat FrontLeft
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat FrontRight
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P1
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P2
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P3
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P4
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P5
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P6
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }
        }

        passenger FrontRight
        {
            position inside
            {
                offset = -0.2043 0.9140 2.0538,
                rotate = 0.0000 0.0522 0.0000,
            }

            position outside
            {
                offset = -1.7634 0.0000 1.8602,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontRight,
            }

            showPassenger = true,
            door = DoorFrontRight,
            area = SeatFrontRight,

            switchSeat FrontLeft
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat Gunner
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P1
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P2
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P3
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P4
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P5
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P6
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }
        }

        passenger P1
        {
            position inside
            {
                offset = 0.6129 0.9247 1.3441,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                area = SeatRearLeft,
                offset = 1.7527 0.0000 -0.1290,
                rotate = 0.0000 0.0000 0.0000,
            }

            door = DoorRearLeft,
            area = SeatRearLeft,

            switchSeat FrontLeft
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat Gunner
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat FrontRight
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P2
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P3
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P4
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P5
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P6
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }
        }

        passenger P2
        {
            position inside
            {
                offset = -0.6237 0.9140 1.3548,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -1.7312 0.0000 -0.2151,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatRearRight,
            }

            door = DoorRearRight,
            area = SeatRearRight,

            switchSeat FrontLeft
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat Gunner
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat FrontRight
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P1
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P3
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P4
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P5
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P6
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }
        }

        passenger P3
        {
            position inside
            {
                offset = 0.4301 0.9140 -0.0968,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                area = SeatRearLeft,
                offset = 1.7527 0.0000 -0.1290,
                rotate = 0.0000 0.0000 0.0000,
            }

            area = SeatRearLeft,

            switchSeat FrontLeft
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat Gunner
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat FrontRight
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P1
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P2
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P4
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P5
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P6
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }
        }

        passenger P4
        {
            position inside
            {
                offset = -0.4409 0.9140 -0.0968,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -1.7312 0.0000 -0.2151,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatRearRight,
            }

            area = SeatRearRight,

            switchSeat FrontLeft
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat Gunner
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat FrontRight
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P1
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P2
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P3
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P5
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P6
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }
        }

        passenger P5
        {
            position inside
            {
                offset = -0.4409 0.9140 -0.7527,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -1.7312 0.0000 -0.2151,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatRearRight,
            }

            area = SeatRearRight,

            switchSeat FrontLeft
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat Gunner
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat FrontRight
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P1
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P2
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P3
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P4
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P6
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }
        }

        passenger P6
        {
            position inside
            {
                offset = 0.4516 0.9140 -0.7527,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                area = SeatRearLeft,
                offset = 1.7527 0.0000 -0.1290,
                rotate = 0.0000 0.0000 0.0000,
            }

            area = SeatRearLeft,

            switchSeat FrontLeft
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat Gunner
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat FrontRight
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P1
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P2
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P3
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P4
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }

            switchSeat P5
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
            }
        }

        part PassengerCompartment
        {
            category = nodisplay,

            passenger*
            {
                hasRoof = true,
            }

            lua
            {
                update = Vehicles.Update.PassengerCompartment,
            }
        }

        part WindshieldArmor
        {
            itemType = Base.BTR-80_Windshield_Armor,
            area = SeatFrontRight,
            mechanicRequireKey = false,
            category = Armor,

            table SpawnInfo
            {
                spawnChance = 100,
            }

            model Default
            {
                file = BTR-80_Windshield_Armor,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 180.0000 0.0000,
            }

            table install
            {
                items
                {
                    1
                    {
                        tags = Wrench,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }

                time = 300,
                skills = Mechanics:4,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.PC_Default,
            }

            table uninstall
            {
                items
                {
                    1
                    {
                        tags = Wrench,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }

                time = 300,
                skills = Mechanics:4,
                test = Vehicles.UninstallTest.Default,
                complete = Vehicles.UninstallComplete.PC_Default,
            }

            lua
            {
                create = Vehicles.Create.DefaultRAMDOM,
            }
        }

        template = TankArmor,

        part Armor
        {
            table ArmorData
            {
                thickness = 35,
            }

            itemType = Base.TankArmor,
            repairMechanic = true,
            mechanicArea = Engine,
            mechanicRequireKey = true,
            durability = 10,
            category = Armor,
            area = Engine,

            model Armor1
            {
                file = BTR-80_Armor1,
                offset = -0.0000 0.0000 -0.0000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }

            model Armor2
            {
                file = BTR-80_Armor2,
                offset = -0.0000 0.0000 -0.0000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }

            model Armor3
            {
                file = BTR-80_Armor3,
                offset = -0.0000 0.0000 -0.0000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }

            lua
            {
                create = Vehicles.Create.ARMOR,
                init = Vehicles.Init.ARMOR,
                update = Vehicles.Update.ARMOR,
            }
        }

        template = Door/part/DoorFrontLeft,

        part DoorFrontLeft
        {
            itemType = Base.BTR-80_Front_Door,
            repairMechanic = true,
            mechanicArea = SeatFrontLeft,
            area = SeatFrontLeft,

            model Default
            {
                file = BTR-80_Door_Front_Left,
                offset = -0.0000 0.0000 -0.0000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }

            anim Close
            {
                anim = Door,
                reverse = TRUE,
                rate = 2.0,
            }

            anim Open
            {
                anim = Door,
                reverse = FALSE,
                rate = 2.0,
            }

            anim Closed
            {
                anim = Door,
                reverse = FALSE,
                animate = FALSE,
            }

            anim Opened
            {
                anim = Door,
                reverse = TRUE,
                animate = FALSE,
            }

            anim ActorOpen
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
                angle = 0.0 270.0 0.0,
            }

            anim ActorClose
            {
                angle = 0.0 270.0 0.0,
            }
        }

        template = Door/part/DoorFrontRight,

        part DoorFrontRight
        {
            itemType = Base.BTR-80_Front_Door,
            repairMechanic = true,
            mechanicArea = SeatFrontRight,
            area = SeatFrontRight,

            model Default
            {
                file = BTR-80_Door_Front_Right,
                offset = -0.0000 0.0000 -0.0000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }

            anim Close
            {
                anim = Door,
                reverse = TRUE,
                rate = 2.0,
            }

            anim Open
            {
                anim = Door,
                reverse = FALSE,
                rate = 2.0,
            }

            anim Closed
            {
                anim = Door,
                reverse = FALSE,
                animate = FALSE,
            }

            anim Opened
            {
                anim = Door,
                reverse = TRUE,
                animate = FALSE,
            }

            anim ActorOpen
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
                angle = 0.0 270.0 0.0,
            }

            anim ActorClose
            {
                angle = 0.0 270.0 0.0,
            }
        }

        template = Door/part/DoorRearLeft,

        part DoorRearLeft
        {
            itemType = Base.BTR-80_Rear_Door,
            repairMechanic = true,
            mechanicArea = SeatRearLeft,
            area = SeatRearLeft,

            model Default
            {
                file = BTR-80_Door_Back_Left,
                offset = 0.0000 0.0000 -0.0000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }

            anim Close
            {
                anim = Door,
                reverse = TRUE,
                rate = 1.0,
            }

            anim Open
            {
                anim = Door,
                reverse = FALSE,
                rate = 1.0,
            }

            anim Closed
            {
                anim = Door,
                reverse = FALSE,
                animate = FALSE,
            }

            anim Opened
            {
                anim = Door,
                reverse = TRUE,
                animate = FALSE,
            }

            anim ActorOpen
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
                angle = 0.0 270.0 0.0,
            }

            anim ActorClose
            {
                angle = 0.0 270.0 0.0,
            }
        }

        template = Door/part/DoorRearRight,

        part DoorRearRight
        {
            itemType = Base.BTR-80_Rear_Door,
            repairMechanic = true,
            mechanicArea = SeatRearRight,
            area = SeatRearRight,

            model Default
            {
                file = BTR-80_Door_Back_Right,
                offset = 0.0000 0.0000 -0.0000,
                rotate = 0.0000 180.0000 0.0000,
                scale = 1.0,
            }

            anim Close
            {
                anim = Door,
                reverse = TRUE,
                rate = 1.0,
            }

            anim Open
            {
                anim = Door,
                reverse = FALSE,
                rate = 1.0,
            }

            anim Closed
            {
                anim = Door,
                reverse = FALSE,
                animate = FALSE,
            }

            anim Opened
            {
                anim = Door,
                reverse = TRUE,
                animate = FALSE,
            }

            anim ActorOpen
            {
                anim = Climb_WindowB,
                rate = 0.23,
                sound =,
                angle = 0.0 270.0 0.0,
            }

            anim ActorClose
            {
                angle = 0.0 270.0 0.0,
            }
        }

        part HatchRear
        {
            itemType = Base.BTR-80_Rear_Hatch,
            area = SeatRearRight,
            mechanicRequireKey = false,
            durability = 3,
            category = door,

            model Default
            {
                file = BTR-80_Hatch,
                offset = 0.0000 0.0000 -0.0000,
                rotate = 0.0000 180.0000 0.0000,
            }

            table install
            {
                items
                {
                    1
                    {
                        tags = base:wrench,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }

                time = 500,
                skills = Mechanics:5,
                recipes = Basic Mechanics,
                test = Vehicles.InstallTest.Default,
                door = EngineDoor,
            }

            table uninstall
            {
                items
                {
                    1
                    {
                        tags = base:wrench,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }

                time = 500,
                skills = Mechanics:5,
                recipes = Basic Mechanics,
                test = Vehicles.UninstallTest.Default,
            }

            lua
            {
                create = Vehicles.Create.Default,
            }
        }

        template = Windshield/part/Windshield,

        part Windshield
        {
            itemType = Base.BTR-80_Front_Door,

            model Default
            {
                file = BTR-80_Windshield,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 180.0000 0.0000,
            }
        }

        template = Tire,

        part TireFrontLeft
        {
            category = nodisplay,
			itemType = Tire_Military_BTR,

            model InflatedTirePlusWheel
            {
                file = fake_wheel,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }

            lua
            {
                update = Vehicles.Update.APCTIRE,
            }
        }

        part TireRearLeft
        {
            category = nodisplay,
			itemType = Tire_Military_BTR,

            model InflatedTirePlusWheel
            {
                file = fake_wheel,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }

            lua
            {
                update = Vehicles.Update.APCTIRE,
            }
        }

        part TireFrontRight
        {
            category = nodisplay,
			itemType = Tire_Military_BTR,

            model InflatedTirePlusWheel
            {
                file = fake_wheel,
                rotate = 0.0000 180.0000 0.0000,
                offset = 0.0000 0.0000 0.0000,
            }

            lua
            {
                update = Vehicles.Update.APCTIRE,
            }
        }

        part TireRearRight
        {
            category = nodisplay,
			itemType = Tire_Military_BTR,

            model InflatedTirePlusWheel
            {
                file = fake_wheel,
                rotate = 0.0000 180.0000 0.0000,
                offset = 0.0000 0.0000 0.0000,
            }

            lua
            {
                update = Vehicles.Update.APCTIRE,
            }
        }

        template = TankBrake,

        part Brake*
        {
            table install
            {
                skills = Mechanics:7,
                recipes = Advanced Mechanics,
            }

            table uninstall
            {
                skills = Mechanics:7,
                recipes = Advanced Mechanics,
            }
        }

        template = TankSuspension,

        part Suspension*
        {
            table install
            {
                skills = Mechanics:7,
                recipes = Advanced Mechanics,
            }

            table uninstall
            {
                skills = Mechanics:7,
                recipes = Advanced Mechanics,
            }
        }

        template = Radio,

        part Heater
        {
            category = engine,

            lua
            {
                update = Vehicles.Update.Heater,
            }
        }

        template = Headlight,

        part Spare_Tire
        {
            category = addons,
            area = TruckBed,
            itemType = Base.Tire_Military_BTR,

            model Tire_Military_BTR
            {
                file = BTR-80_Spare_Tire,
                rotate = 0.0000 180.0000 0.0000,
                offset = 0.0000 0.0000 0.0000,
            }

            table install
            {
                time = 100,
                skills = Mechanics:0,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.PC_Default,
            }

            table uninstall
            {
                time = 100,
                skills = Mechanics:0,
                test = Vehicles.UninstallTest.Default,
                complete = Vehicles.UninstallComplete.PC_Default,
            }
        }

        part Extra_GasCan_1
        {
            category = addons,
            area = TruckBed,
            itemType = Base.Military_PetrolCan_20L,

            table SpawnInfo
            {
                spawnChance = 20,
            }

            model Military_PetrolCan_20L
            {
                file = BTR-80_Extra_GasCan_1,
                rotate = 0.0000 180.0000 0.0000,
                offset = 0.0000 0.0000 0.0000,
            }

            table install
            {
                time = 100,
                skills = Mechanics:0,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.PC_Default,
            }

            table uninstall
            {
                time = 100,
                skills = Mechanics:0,
                test = Vehicles.UninstallTest.Default,
                complete = Vehicles.UninstallComplete.PC_Default,
            }

            lua
            {
                create = Vehicles.Create.DefaultRAMDOM,
            }
        }

        part Extra_GasCan_2
        {
            category = addons,
            area = TruckBed,
            itemType = Base.Military_PetrolCan_20L,

            table SpawnInfo
            {
                spawnChance = 20,
            }

            model Military_PetrolCan_20L
            {
                file = BTR-80_Extra_GasCan_2,
                rotate = 0.0000 180.0000 0.0000,
                offset = 0.0000 0.0000 0.0000,
            }

            table install
            {
                time = 100,
                skills = Mechanics:0,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.PC_Default,
            }

            table uninstall
            {
                time = 100,
                skills = Mechanics:0,
                test = Vehicles.UninstallTest.Default,
                complete = Vehicles.UninstallComplete.PC_Default,
            }

            lua
            {
                create = Vehicles.Create.DefaultRAMDOM,
            }
        }

        part Extra_GasCan_3
        {
            category = addons,
            area = TruckBed,
            itemType = Base.Military_PetrolCan_20L,

            table SpawnInfo
            {
                spawnChance = 20,
            }

            model Military_PetrolCan_20L
            {
                file = BTR-80_Extra_GasCan_3,
                rotate = 0.0000 180.0000 0.0000,
                offset = 0.0000 0.0000 0.0000,
            }

            table install
            {
                time = 100,
                skills = Mechanics:0,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.PC_Default,
            }

            table uninstall
            {
                time = 100,
                skills = Mechanics:0,
                test = Vehicles.UninstallTest.Default,
                complete = Vehicles.UninstallComplete.PC_Default,
            }

            lua
            {
                create = Vehicles.Create.DefaultRAMDOM,
            }
        }

        physics box
        {
            offset = -1.2796 0.3118 -0.1242,
            extents = 0.3158 1.0526 5.0105,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 1.2796 0.3118 -0.1242,
            extents = 0.3158 1.0526 5.0105,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.8655 2.8602,
            extents = 1.0753 1.0753 1.3118,
            rotate = -45.0000 0.0000 0.0000,
        }

        attachment trailer
        {
            offset = 0.0000 0.5951 -3.7804,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = -1.0000,
        }

        attachment trailerfront
        {
            offset = 0.0000 0.4883 3.7764,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = 1.0000,
        }
    }
}
